/*                                                                            *
 ****************************************************************************** 
 *                                                                            *
 * Copyright © 2012 by Abhishek Sharma, Meeti Sharma                          *
 *                                                                            *
 ******************************************************************************
 *                                                                            *
 * This file is part of ShoppersHause                                         *
 *                                                                            *
 * ShoppersHause is free software: you can redistribute it and/or modify it   *
 * under the terms of the GNU General Public License as published by the Free *
 * Software Foundation, either version 3 of the License, or (at your option)  *
 * any later version.                                                         *
 *                                                                            *
 * ShoppersHause is distributed in the hope that it will be useful, but       *
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License   *
 * for more details.                                                          *
 *                                                                            *
 * You should have received a copy of the GNU General Public License along    *
 * with ShoppersHause. If not, see <http://www.gnu.org/licenses/>.            *
 *                                                                            *
 ******************************************************************************
 *                                                                            *
 */

package shoppershause.authentication;

import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * @author Abhishek
 */
public class LoginServlet extends HttpServlet {
    
    /**
     * Handles the HTTP
     * <code>POST</code> method.
     *
     * @param request servlet request
     * @param response servlet response
     * @throws ServletException if a servlet-specific error occurs
     * @throws IOException if an I/O error occurs
     */
    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        
        String userType = request.getParameter("user");
        if(userType.equalsIgnoreCase("client")){
            
        }
        else if(userType.equalsIgnoreCase("admin")){
            
        }
    }

    /**
     * Returns a short description of the servlet.
     *
     * @return a String containing servlet description
     */
    @Override
    public String getServletInfo() {
        return "Short description";
    }
}
